import Vue from 'vue'
import App from './App.vue'
import router from './router'

// import req from './utils/request.js'

// 引入初始化的css和字体图标的css
import './assets/css/reset.css'
import './assets/fonts/iconfont.css'
import './assets/css/index.less'

// 引入element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(ElementUI)

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')

// 测试代码 - 用完可以删掉的
// getData()
// async function getData() {
//   const data = await req.get('/static/data.json', {
//     page: 1,
//     size: 10
//   })
//   console.log(data)
// }
